package com.example.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;
import lombok.Data;

import java.io.Serializable;

@Data
public class ResultVO<T> implements Serializable{

    @JSONField(serialzeFeatures= SerializerFeature.WriteMapNullValue)
    private Integer code;

    @JSONField(serialzeFeatures= SerializerFeature.WriteMapNullValue)
    private String msg;

    private T data;

    public ResultVO() {

    }

    public ResultVO(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
